package org.dromara.answer.domain.bo;

import org.dromara.answer.domain.AiExamQuestions;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 考试题目关联业务对象 ai_exam_questions
 *
 * @author Lion Li
 * @date 2025-04-09
 */
@Data
@AutoMapper(target = AiExamQuestions.class, reverseConvertGenerate = false)
public class AiExamQuestionsBo {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 考试ID
     */
    @NotNull(message = "考试ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long examId;

    /**
     * 题目ID
     */
    @NotNull(message = "题目ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long questionId;

    /**
     * 题目顺序
     */
    @NotNull(message = "题目顺序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer questionOrder;

    /**
     * 该题在本次考试中的分值
     */
    @NotNull(message = "该题在本次考试中的分值不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer questionScore;

}
